8fd02ee8dd64a618f0e62ce73334f03550800b88,router/java/src/net/i2p/router/transport/BandwidthLimitedInputStream.java,BandwidthLimitedInputStream,skip,#number#,43
Before Change
}
public long skip(long numBytes) throws IOException {
long skip = in.skip(numBytes);
_context.bandwidthLimiter().delayInbound(_peer, (int)skip);
return skip;
}
}
After Change
}
public long skip(long numBytes) throws IOException {
long skip = in.skip(numBytes);
if (_pullFromOutbound)
_context.bandwidthLimiter().delayOutbound(_peer, (int)skip);
else
_context.bandwidthLimiter().delayInbound(_peer, (int)skip);
return skip;
}
}